from flask import Flask, render_template, url_for, session, redirect, request
from . import article
from app.models import Article, Oplog, db, User, Admin
import datetime


@article.route('/<int:id>', methods=["GET", "POST"])
def article(id):
    print("article函数开始")
    arc = Article.query.filter_by(id=id).first()
    return render_template('article.html', arc=arc)
